package com.seata.demo.cloud.client;

import com.seata.demo.cloud.dto.OrderDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "seata-cloud-order",path = "/order")
public interface OrderClient {

    @PostMapping("/createOrder")
    public boolean createOrder(@RequestBody OrderDTO orderDTO) throws Exception;

    @PostMapping("/createOrderTCC")
    public boolean createOrderTCC(@RequestBody OrderDTO orderDTO) throws Exception;


}
